package com.aaa.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("/user")
public class UserController {
    @RequiresPermissions(value = "user:query")
    @RequestMapping("/list")
    public  String query(){

        return "user:query";
    }
    @RequiresPermissions(value = "user:delete")
    @RequestMapping("/delete")
    public  String delete(){
        return "user:delete";
    }
    @RequiresPermissions(value = "user:update")
    @RequestMapping("/update")
    public  String update(){
        return "user:update";
    }
    @RequiresPermissions(value = "user:add")
    @RequestMapping("/add")
    public  String add(){
        return "user:add";
    }
    @RequiresPermissions(value = "user:export")
    @RequestMapping("/export")
    public  String export(){
        return "user:export";
    }

}
